import request from '@/utils/request'

export function getAllAccountList(query) {
  return request({
    url: '/balance/getAllAccountList',
    method: 'get',
    params: query
  })
}
export function getAllList(query) {
  return request({
    url: '/balance/getList',
    method: 'get',
    params: query
  })
}
export function create(data) {
  return request({
    url: '/balance/create',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/balance/update',
    method: 'put',
    data
  })
}
export function deleteRecord(id) {
  return request({
    url: '/balance/delete/' + id,
    method: 'delete'
  })
}
